<?php

/**
 * @author admindeptrai
 * @copyright 2011
 */
$dcm = " DCM ".'</br> vfgvfsgs';
require_once("phpmailer.class.php");				
	$mail = new PHPMailer(true); 
	$mail->IsSMTP(); 
	$mail->PluginDir = ""; // Path to class dir
	$mail->SMTPDebug  = 0;                
	$mail->SMTPAuth   = true;             
	$mail->SMTPSecure = "ssl";            
	$mail->Host       = "smtp.gmail.com";  
	$mail->Port       = "465";  
	$mail->Username   = "thuong@thaibinhngaymoi.com";  
	$mail->Password   = "nhingi";
	//$mail->AddReplyTo('pavennt@gmail.com', 'KAI Blog X-Mail');
	$mail->AddAddress('nguyentrungsang@gmail.com', 'SO Name');
	$mail->SetFrom('thuong@thaibinhngaymoi.com', 'demo email 1');
	$mail->Subject = 'Email subject';
	$mail->AltBody = 'demo email 2'; 
	$mail->MsgHTML($dcm); // N?i dung email
	$mail->Send();
?>